package org.ddd.productdemo.domaindriven.domain.repository;

import org.ddd.productdemo.domaindriven.domain.model.entity.Product;
import org.ddd.productdemo.domaindriven.domain.model.entity.ProductId;

import java.util.Optional;

public interface ProductRepository {
    Optional<Product> findById(ProductId productId);
    Product save(Product order);
    void delete(ProductId id);

}
